home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / c / cxref-1.001 / cxref-1~ / cxref / doc / Makefile < prev    next >
Encoding:
Makefile  |  1996-02-24  |  1.6 KB  |  97 lines

  1. # $Header: /home/amb/cxref/doc/RCS/Makefile 1.6 1996/02/24 14:53:08 amb Exp $
  2. #
  3. # C Cross Referencing & Documentation tool. Version 1.0
  4. #
  5. # Documentation Makefile.
  6. #
  7. # Written by Andrew M. Bishop
  8. #
  9. # This file Copyright 1995,96 Andrew M. Bishop
  10. # It may be distributed under the GNU Public License, version 2, or
  11. # any higher version.  See section COPYING of the GNU Public license
  12. # for conditions under which this file may be redistributed.
  13. #
  14.  
  15. LATEX=latex
  16.  
  17. DOCS=cxref.dvi
  18.  
  19. ########
  20.  
  21. SOURCE_FILES= \
  22. cxref.c       \
  23. cxref.h       \
  24. datatype.h    \
  25. comment.c     \
  26. file.c        \
  27. func.c        \
  28. preproc.c     \
  29. type.c        \
  30. var.c         \
  31. xref.c        \
  32. warn-raw.c    \
  33. latex.c       \
  34. latex-style.c \
  35. html.c        \
  36. slist.c       \
  37. memory.h      \
  38. memory.c      \
  39. parse-yy.h    \
  40. parse-yacc.h  \
  41. parse-lex.c   \
  42. parse-yacc.c 
  43.  
  44. ########
  45.  
  46. all : sources docs
  47.     @
  48.  
  49. ########
  50.  
  51. sources :
  52. #
  53. # Create the cross reference files
  54. #
  55.     @for file in $(SOURCE_FILES) ; do \
  56.        echo Cross referencing $$file ; \
  57.        ( cd .. ; cxref -xref -Odoc -Ncxref $$file ) ; \
  58.     done
  59. #
  60. # Create the source files using cxref
  61. #
  62.     @for file in $(SOURCE_FILES) ; do \
  63.        echo Documenting $$file ; \
  64.        ( cd .. ; cxref -warn-xref -xref -Odoc -Ncxref -latex -html $$file ) ; \
  65.        rm -f $(DOCS) ; \
  66.     done
  67. #
  68. # Create the index using cxref
  69. #
  70.     @echo Indexing
  71.     @( cd .. ; cxref -index-all -Odoc -Ncxref -latex -html )
  72.     @rm -f $(DOCS)
  73.  
  74. ########
  75.  
  76. docs : $(DOCS)
  77.     @
  78.  
  79. ########
  80.  
  81. cxref.dvi :
  82. #
  83. # Create the final output using latex
  84. #
  85.     $(LATEX) cxref.tex
  86. #
  87. # Create the cross references using latex
  88. #
  89.     $(LATEX) cxref.tex
  90.  
  91. ########
  92.  
  93. clean :
  94.     -rm -f cxref.* *.tex *.dvi *.html
  95.  
  96. ########
  97.